import request from '@/utils/request'

export function app_pack_list() {
    return request({
        url:`/app/app_pack_list`,
        method:'get',
        params:{
            page:'1',
            limit:'999'
        }
    })
}

export function app_pack_publish(data) {
    return request({
        url:`/app/app_pack_publish`,
        method:'post',
        data
    })
}

export function app_pack_del(data) {
    return request({
        url:`/app/app_pack_del`,
        method:'post',
        data
    })
}

export function app_pack(data) {
    return request({
        url:`/app/app_pack`,
        method:'post',
        data
    })
}

export const uploadImageApi = (formData) =>
  request({
    url: "/tool/local_up",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data: formData,
  });

